package com.cq.hd.member.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class WithdrawalApplyPageVo implements Serializable {

    @ApiModelProperty(value = "申请单号")
    private Long id;

    @ApiModelProperty(value = "申请单号")
    private String applyNo;

    @ApiModelProperty(value = "提现类型(1-商户本金提现，2-佣金提现，3-商户补贴提现)")
    private Integer withdrawalType;

    @ApiModelProperty(value = "提现金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "申请时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime applyTime;

    @ApiModelProperty(value = "状态（1-待审核，2-审核失败，3-审核成功，4-提现中，5-提现成功，6-提现失败）")
    private Integer state;

    @ApiModelProperty(value = "提现失败原因")
    private String refuseReason;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "核算单id")
    private Long checkBillId;

    @ApiModelProperty(value = "核算单状态：1-待确认 2-已确认")
    private Integer checkStatus;

    @ApiModelProperty(value = "核算单URL")
    private String checkFile;

}
